package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 积分明细
 * </p>
 *
 * @author wangdong
 * @since 2021-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wms_points_item")
@ApiModel(value="PointsItem对象", description="积分明细")
public class PointsItem extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "费用标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "仓库")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "员工标识")
    @TableField("party_code")
    private String partyCode;

    @ApiModelProperty(value = "变更类型：pack打包、exchange兑换、reward奖励")
    @TableField("change_type")
    private String changeType;

    @ApiModelProperty(value = "变更积分")
    @TableField("change_points")
    private BigDecimal changePoints;

    @ApiModelProperty(value = "剩余可用积分")
    @TableField("remaining_available_points")
    private BigDecimal remainingAvailablePoints;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "组织机构编码")
    @TableField("branch_code")
    private String branchCode;

    @ApiModelProperty(value = "部门编码")
    @TableField("department_code")
    private String departmentCode;

    @ApiModelProperty(value = "用户电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "用户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "用工类型")
    @TableField("employment_type")
    private String employmentType;

    @ApiModelProperty(value = "劳务外包方")
    @TableField("outsourcer")
    private String outsourcer;



}

